package com.dianqiu.common.service.impl;

import java.util.List;
import org.springframework.stereotype.Component;
import com.dianqiu.base.service.impl.BaseService;
import com.dianqiu.common.bean.DqBetCompanyTO;
import com.dianqiu.common.bean.DqHandicapHistTO;
import com.dianqiu.common.bean.DqHandicapTO;
import com.dianqiu.common.bean.DqHandicapTypeTO;
import com.dianqiu.common.bean.DqMatchHistTO;
import com.dianqiu.common.bean.DqMatchTO;
import com.dianqiu.common.service.ListHandicapService;

@Component("listHandicapService")
public class ListHandicapServiceImpl extends BaseService implements ListHandicapService {
	
	public List<DqHandicapHistTO> getHandicapHistoryByUserIdAndMatchId(
			Integer userId, Integer matchId) {
		return this.getDqHandicapHistDao().getHandicapHistoryByUserIdAndMatchId(userId, matchId);
	}

	public List<DqMatchHistTO> getMatchHistoryById(Integer matchId) {
		return this.getDqMatchHistDao().getMatchHistoryById(matchId);
	}

	@Override
	public List<DqHandicapTO> getHandicapListByMatchId(Integer matchId) {
		// TODO Auto-generated method stub
		return this.getDqHandicapDao().getHandicapListByMatchId(matchId);
	}

	@Override
	public List<DqBetCompanyTO> getAllDqBetCompany() {
		// TODO Auto-generated method stub
		return this.getDqBetCompanyDao().getAllDqBetCompany();
	}

	@Override
	public List<DqHandicapTypeTO> getAllDqHandicapType() {
		// TODO Auto-generated method stub
		return this.getDqHandicapTypeDao().getAllDqHandicapType();
	}

	@Override
	public List<DqMatchTO> getMatchById(Integer matchId) {
		// TODO Auto-generated method stub
		return this.getDqMatchDao().getMatchById(matchId);
	}

	@Override
	public List<DqBetCompanyTO> getBetCompanyByCompanyId(Integer companyId) {
		// TODO Auto-generated method stub
		return this.getDqBetCompanyDao().getBetCompanyByCompanyId(companyId);
	}

	@Override
	public List<DqHandicapTypeTO> getHandicapTypeByTypeId(Integer typeId) {
		// TODO Auto-generated method stub
		return this.getDqHandicapTypeDao().getHandicapTypeByTypeId(typeId);
	}

	@Override
	public void saveDqHandicap(DqHandicapTO dqHandicap) {
		// TODO Auto-generated method stub
		this.getDqHandicapDao().saveDqHandicap(dqHandicap);
	}

	@Override
	public void saveDqHandicapHistoryTO(DqHandicapHistTO dqHandicapHistTO) {
		// TODO Auto-generated method stub
		this.getDqHandicapHistDao().saveDqHandicapHistoryTO(dqHandicapHistTO);
	}
	

}
